package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.CourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-02-11
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * 查询教师
     * @param courseId
     * @return
     */
    List<CourseTeacher> getListTeacherByCourseId(Long courseId);

    /**
     * 添加教师
     *
     * @param courseTeacherDto
     * @param companyid
     * @return
     */
    CourseTeacher addCourseOrSaveTeacher(CourseTeacherDto courseTeacherDto, Long companyid);

    /**
     * 删除教师
     * @param courseId
     * @param courseTeacherId
     * @param companyid
     */
    void deleteCourseTeacher(Long courseId, Long courseTeacherId, Long companyid);

}
